{% extends 'configmanager/__base__.html' %}
{% block title %}历史记录列表 | {% endblock %}
{% block search_display %}none{% endblock %}
{% block content %}

    <ol class="breadcrumb">
        <li><a href="{% url 'configmanager:configlist' %}">站点配置列表</a></li>
        <li class="active">站点历史记录列表</li>
    </ol><br>

    <div id="whole" class="container-fluid table-responsive">
    {% if confighistory_list %}
        <table class="table table-striped table-hover table-condensed">
            <th>修改编号</th>
            <th>站点名称</th>
            <th>配置文件名</th>
            <th>修改人</th>
            <th>修改时间</th>
            <th>操作</th>
            {% for ch in confighistory_list %}
                <tr>
                    <td>{{ ch.history_id }}</td>
                    <td>{{ ch.get_site_fullname }}</td>
                    <td>{{ ch.filename }}</td>
                    <td>{{ ch.modified_user }}</td>
                    <td>{{ ch.modified_time }}</td>
                    <td>
                        <a class="btn btn-warning" href="">&nbsp;恢复&nbsp;</a>
                        <a class="btn btn-info" href="{% url 'configmanager:confighistorydetail' ch.history_id %}">&nbsp;查看内容&nbsp;</a>
                    </td>
                </tr>
            {% endfor %}
        </table>
    {% else %}
        <p>No ConfigChangeHistory are available.</p>
    {% endif %}
    <a class="btn btn-default" href="{% url 'configmanager:configlist' %}">返回</a>
{% endblock %}
